import com.aliyuncs.exceptions.ClientException;
import com.zeny.ali.sms.MsgEntity;
import com.zeny.ali.sms.SMSUtils;

/**
 * @ClassName Test009
 * @Description TODO
 * @Author zeny
 * @Date 2020/3/16 0016 23:30
 */
public class Test009 {
    public static void main(String[] args) throws ClientException {
        MsgEntity msgEntity = new MsgEntity();
        msgEntity.setAccessKeyId("XXX")
                .setAccessKeySecret("XXX")
                .setSignName("XX服务")
                .setPhoneNumbers("电话号码")
                .setCheckCode("494931")
                .setCheckCodeType("checkcode")
                .setTemplateCode("SMS_123456");
        SMSUtils.sendShortMessage(msgEntity);
    }
}
